package com.martin.study.depend_inject.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class StandardBean {

	@Autowired
	private String str;

	@Value("0")
	private Integer integer;

	private Number num;

	@Autowired
	public void setNumber(Number num){
		this.num = num;
	}

	public void print(){
		System.out.println(this.str);
		System.out.println(this.integer);
		System.out.println(this.num);
	}
}
